//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef ___FATFILE_H_
#define ___FATFILE_H_

#include <tfssys.h>

class CFatFile
{
public:
    CFatFile();

    UInt32  AddRef(void);
    UInt32  Release(void);

    UInt32 f_perm;            /* Things he can do */
    UInt32 f_pos;            /* Byte position in file */
    struct node *f_node;    /* Either a fatdir or a fatfile */
    long f_rename_id;       /* Transaction # for rename() */
    class FatDir *pFatDir;

private:
//    int try_open(unsigned char *file, int mode, int mask);
    UInt32     RefCnt;
};

#endif /*___FATFILE_H_ */
